<bc:ExKEY x:Class="SLS.Presentation.KEYFOREIGNKEYLIST"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                    xmlns:exc="clr-namespace:SLS.Controls;assembly=CLSControls" 
                    xmlns:bc="clr-namespace:SLS.Base;assembly=CLSBase"
                    xmlns:ldb="clr-namespace:SLS.Presentation.Data;assembly=FOREIGNKEYLISTTB"
                    ToolTip="{Binding DisplayName}"
                    x:Name="Container" 
                    xmlns:meffed="http:\\www.codeplex.com\MEFedMVVM"
                    mc:Ignorable="d"             
                    d:DesignHeight="300"
                    d:DesignWidth="600"           
                    >                    
    <bc:ExKEY.Resources>
    <ldb:FOREIGNKEYLISTDataSet  x:Key="SETUI" />
    <CollectionViewSource x:Key="vwBaseTable" Source="{Binding Path=FOREIGNKEYLIST,Source={StaticResource SETUI}}" />
    </bc:ExKEY.Resources>
     <Grid Name="MasterGrid"
          MinHeight="100"
          VerticalAlignment="Top"
          HorizontalAlignment="Stretch"
          Width="{Binding ElementName=Container,Path=ActualWidth}">  
    <StackPanel>
              <WrapPanel>
                <exc:NMICD Name="NMICD"> 
                </exc:NMICD>
        </WrapPanel>
            <exc:FilteringDataGrid Grid.Row="0"
                      Name="MainGridData"
                      AutoGenerateColumns="False"
                      IsSynchronizedWithCurrentItem="True"
                      SelectionChanged="ItemsControls_SelectionChanged"
                      SelectionMode="Extended"
                      Height="Auto"
                      Width="Auto"
                      VerticalAlignment="Stretch"
                      HorizontalAlignment="Stretch"
                      ItemsSource="{Binding Source={DynamicResource ResourceKey=vwBaseTable}}"
                      ColumnWidth="SizeToHeader"
                      SelectionUnit="FullRow">
                      <DataGrid.Columns>
                    <DataGridTextColumn x:Name="FOREIGNKEYLISTKeyColumn_QD"
                                        Binding="{Binding Path=FOREIGNKEYLISTKEY}"
                                        Header="FOREIGNKEYLISTKEY"
                                    Width="SizeToHeader" /> 
                <DataGridTextColumn x:Name="LDES"
                                    Binding="{Binding Path=LDES}"
                                    Header="LDES"
                                    Width="SizeToCells" />                                    
                </DataGrid.Columns>
            </exc:FilteringDataGrid> 
</StackPanel>            
    </Grid>
</bc:ExKEY> 
